package com.sumer.psychology.microblog.application.command;

import com.sumer.psychology.common.domain.model.Author;
import com.sumer.psychology.common.port.adapter.service.AuthorCommand;

/**
 * User: zhenguang.zhu
 * Date: 2014/9/2
 * Time: 13:30
 */
public class CreateMicroBlogCommand implements AuthorCommand {
    private String content;
    private Author author;

    public CreateMicroBlogCommand(String content, Author author) {
        this.content = content;
        this.author = author;
    }

    public String content() {
        return content;
    }

    @Override
    public void setAuthor(Author author) {
        this.author = author;
    }

    @Override
    public Author author() {
        return author;
    }
}
